import type { Metadata } from "next";
import { Inter } from "next/font/google";
import { ClerkProvider } from "@clerk/nextjs";
import "./globals.css";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
  title: "智能知识库对话系统",
  description: "基于大语言模型的知识库管理与智能对话平台",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <ClerkProvider
      publishableKey={process.env.NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY}
      signInUrl="/sign-in"
      signUpUrl="/sign-up"
      afterSignInUrl="/knowledge-bases"
      afterSignUpUrl="/knowledge-bases"
    >
      <html lang="zh-CN">
        <body className={inter.className}>
          {children}
        </body>
      </html>
    </ClerkProvider>
  );
} 